import { findAllBet } from '@/apis/betApi'
import { defineStore } from 'pinia'
import { ref } from 'vue'

export default defineStore('bet', () => {
  const bets = ref<BetModel[]>()

  async function all(args: Record<string, any>) {
    const res = await findAllBet(args)
    bets.value = res.data
  }

  return { bets, all }
})
